HtmlSettings

Print settings available when printing HTML content on a physical printer.

Since

7.13

Functions

Link copied to clipboard
public abstract void apply()
Applies the configured print settings.
Link copied to clipboard
public abstract ColorModel colorModel()
Returns the color model used by the printer.
public abstract T colorModel(ColorModel colorModel)
Configures the colorModel for printing.
Link copied to clipboard
public abstract int copies()
Returns the number of copies to print.
public abstract T copies(int copies)
Configures the number of copies to print.
Link copied to clipboard
public abstract T disableCollatePrinting()
Disables collate printing.
Link copied to clipboard
public abstract T disablePrintingBackgrounds()
Disables printing background graphics.
Link copied to clipboard
public abstract T disablePrintingHeaderFooter()
Disables printing headers and footers.
Link copied to clipboard
public abstract T disablePrintingSelectionOnly()
Disables printing only the selected content.
Link copied to clipboard
public abstract DuplexMode duplexMode()
Returns the duplex mode used by the printer.
public abstract T duplexMode(DuplexMode duplexMode)
Configures the duplex mode for printing.
Link copied to clipboard
public abstract T enableCollatePrinting()
Enables collate printing.
Link copied to clipboard
public abstract T enablePrintingBackgrounds()
Enables printing background graphics.
Link copied to clipboard
public abstract T enablePrintingHeaderFooter()
Enables printing headers and footers.
Link copied to clipboard
public abstract T enablePrintingSelectionOnly()
Enables printing only the selected content.
Link copied to clipboard
public abstract String footer()
Returns a value used for the footer.
public abstract T footer(String html)
Configures HTML to be displayed in the footer.
Link copied to clipboard
public abstract String header()
Returns a value used for the header.
public abstract T header(String html)
Configures HTML to be displayed in the header.
Link copied to clipboard
public abstract boolean isCollatePrintingEnabled()
Returns true if collate printing is enabled.
Link copied to clipboard
public abstract boolean isPrintingBackgroundsEnabled()
Returns true if printing background graphics is enabled.
Link copied to clipboard
public abstract boolean isPrintingHeaderFooterEnabled()
Returns true if printing headers and footer is enabled.
Link copied to clipboard
public abstract boolean isPrintingSelectionOnlyEnabled()
Returns true if printing only the selected content is enabled.
Link copied to clipboard
public abstract Orientation orientation()
Returns the page orientation.
public abstract T orientation(Orientation orientation)
Configures the page orientation.
Link copied to clipboard
public abstract PageMargins pageMargins()
Returns the page margins.
public abstract T pageMargins(PageMargins pageMargins)
Configures the page margins for printing.
Link copied to clipboard
public abstract Set<PageRange> pageRanges()
Returns an immutable set containing the page ranges to print.
public abstract T pageRanges(Array<PageRange> pageRanges)
public abstract T pageRanges(Set<PageRange> pageRanges)
Configures the page ranges to print.
Link copied to clipboard
public abstract PagesPerSheet pagesPerSheet()
Returns the number of pages per sheet.
public abstract T pagesPerSheet(PagesPerSheet pagesPerSheet)
Configures the number of pages per sheet.
Link copied to clipboard
public abstract PaperSize paperSize()
Returns the paper size used by the printer.
public abstract T paperSize(PaperSize paperSize)
Configures the paper size for printing.
Link copied to clipboard
public abstract Scaling scaling()
Returns the scaling used by the printer.
public abstract T scaling(Scaling scaling)
Configures the scaling for printing.